extends Node

#单例 在Autoload中定义
var rounds = [] #所有关卡
var currentBigRound = 1 #当前大关卡
var currentSmallRound = 1 #当前小关卡

var roundData = [
	{"roundId":"1-1","targetScore":500,"roundName":"东壹","roundDetail":"-","isPass":false},
	{"roundId":"1-2","targetScore":1500,"roundName":"南壹","roundDetail":"-","isPass":false},
	{"roundId":"1-3","targetScore":2000,"roundName":"西壹","roundDetail":"-","isPass":false},
	{"roundId":"1-4","targetScore":2500,"roundName":"北壹","roundDetail":"-","isPass":false},
	{"roundId":"1-5","targetScore":3000,"roundName":"庄壹","roundDetail":"这里是庄壹","isPass":false},
	{"roundId":"2-1","targetScore":3500,"roundName":"东贰","roundDetail":"-","isPass":false},
	{"roundId":"2-2","targetScore":4000,"roundName":"南贰","roundDetail":"-","isPass":false},
	{"roundId":"2-3","targetScore":5000,"roundName":"西贰","roundDetail":"-","isPass":false},
	{"roundId":"2-4","targetScore":6000,"roundName":"北贰","roundDetail":"-","isPass":false},
	{"roundId":"2-5","targetScore":8000,"roundName":"庄贰","roundDetail":"这里是庄贰","isPass":false},
	{"roundId":"3-1","targetScore":10000,"roundName":"东叁","roundDetail":"-","isPass":false},
	{"roundId":"3-2","targetScore":13000,"roundName":"南叁","roundDetail":"-","isPass":false},
	{"roundId":"3-3","targetScore":16000,"roundName":"西叁","roundDetail":"-","isPass":false},
	{"roundId":"3-4","targetScore":19000,"roundName":"北叁","roundDetail":"-","isPass":false},
	{"roundId":"3-5","targetScore":25000,"roundName":"庄叁","roundDetail":"这里是庄叁","isPass":false},
	{"roundId":"4-1","targetScore":30000,"roundName":"东肆","roundDetail":"-","isPass":false},
	{"roundId":"4-2","targetScore":35000,"roundName":"南肆","roundDetail":"-","isPass":false},
	{"roundId":"4-3","targetScore":40000,"roundName":"西肆","roundDetail":"-","isPass":false},
	{"roundId":"4-4","targetScore":45000,"roundName":"北肆","roundDetail":"-","isPass":false},
	{"roundId":"4-5","targetScore":60000,"roundName":"庄肆","roundDetail":"这里是庄肆","isPass":false}
]

func _init():
	loudRounds()
	
func loudRounds():
	for item in roundData:
		var round = RoundClass.new(item["roundId"], item["targetScore"], item["roundName"], item["roundDetail"], item["isPass"])
		rounds.append(round)
